package com.findFish.fish.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.findFish.common.annotation.Excel;
import com.findFish.common.core.domain.BaseEntity;

/**
 * 鱼类投喂记录对象 fish_feeding
 * 
 * @author admin
 * @date 2025-04-01
 */
public class FishFeeding extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 投喂记录ID */
    private Long id;

    /** 鱼类种群ID */
    @Excel(name = "鱼类种群ID")
    private Long fishPopulationId;

    /** 投喂时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "投喂时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date feedingTime;

    /** 饲料类型 */
    @Excel(name = "饲料类型")
    private String feedType;

    /** 投喂量（kg） */
    @Excel(name = "投喂量", readConverterExp = "k=g")
    private BigDecimal feedAmount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setFishPopulationId(Long fishPopulationId) 
    {
        this.fishPopulationId = fishPopulationId;
    }

    public Long getFishPopulationId() 
    {
        return fishPopulationId;
    }

    public void setFeedingTime(Date feedingTime) 
    {
        this.feedingTime = feedingTime;
    }

    public Date getFeedingTime() 
    {
        return feedingTime;
    }

    public void setFeedType(String feedType) 
    {
        this.feedType = feedType;
    }

    public String getFeedType() 
    {
        return feedType;
    }

    public void setFeedAmount(BigDecimal feedAmount) 
    {
        this.feedAmount = feedAmount;
    }

    public BigDecimal getFeedAmount() 
    {
        return feedAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fishPopulationId", getFishPopulationId())
            .append("feedingTime", getFeedingTime())
            .append("feedType", getFeedType())
            .append("feedAmount", getFeedAmount())
            .toString();
    }
}
